package trading_strategy.orders;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by IntelliJ IDEA.
 * User: gderoujoux
 * Date: 6 mai 2010
 * Time: 15:40:33
 * To change this template use File | Settings | File Templates.
 */
public class OrderManager {
    AtomicInteger orderIdProvider = new AtomicInteger(0);
    public int getNewOrderId() {
        return orderIdProvider.incrementAndGet();
    }

    static final OrderManager instance = new OrderManager();
    public static OrderManager getInstance() {
        return instance;
    }
}
